//
//  KSPickingGoodsDetailViewController.swift
//  Supermarket
//
//  Created by liuxm on 2017/9/26.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

/// 拣货详情
class KSPickingGoodsDetailViewController: KSBaseViewController {

    /// 拣货人信息
    @IBOutlet weak var pickingGoodsInfoLabel: UILabel!
    /// 订单信息
    @IBOutlet weak var scrollView: UIScrollView!
    /// 订单号
    @IBOutlet weak var orderNoLabel: UILabel!
    /// 订单号切换
    @IBOutlet weak var orderNoSwitchBtn: UIButton!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.title = "拣货详情"
        
        self.initView()
    }
    
    fileprivate func initView() {
        for i in 0 ..< 2 {
            let orderInfoView = KSOrderInfoView(frame: CGRect(x: 0, y: CGFloat(i) * (310 + 1) + 1, width: KSConstants.kScreenWidth, height: 310))
            orderInfoView.initView()
            self.scrollView.addSubview(orderInfoView)
        }
        
        self.scrollView.contentSize = CGSize(width: KSConstants.kScreenWidth, height: CGFloat(310 * 2))
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    // 拣货切换
    @IBAction func orderNoSwitchBtnClick(_ sender: Any) {
        
    }
    
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
